<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <div>
    <RouterLink to="/">首页</RouterLink>
    <RouterLink to="/about">关于</RouterLink>
    <RouterLink to="/NewsView">新闻</RouterLink>
    <RouterLink to="/sport">体育</RouterLink>
    <RouterLink to="/Demo1">vue的基本语法</RouterLink>
  </div>
  <RouterView />
</template>

<style scoped>
 a{margin-right:20px;}
</style>
